package com.zhhe.tree.btree;

import lombok.Data;

/*
 *Author:ZouHeng
 *Des:B树的键值对类
 *Date:2021-01-20  13:26
 */
public class Entry<K extends Comparable<K>, V> {
    private K key;
    private V value;

    public Entry(K key, V value) {
        this.key = key;
        this.value = value;
    }

    public K getKey() {
        return key;
    }

    public void setKey(K key) {
        this.key = key;
    }

    public V getValue() {
        return value;
    }

    public void setValue(V value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return key + ":" + value;
    }
}
